﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Wicresoft.EKA.NRemedy.Expression
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        // 去除External()
        private void button_Generate_Click(object sender, EventArgs e)
        {
            string temp = text_Start.Text;
            temp = temp.Replace("\"", "\\\"");
            //temp = temp.Replace("$USER$", "\\\"\" + CurrentUser + \"\"");
            //StringBuilder sb = new StringBuilder();
            //int i = 0, j = 100, length = temp.Length;
            //while (i < length)
            //{
            //    if (j >= length - i) j = length - i;
            //    sb.AppendLine("\"" + temp.Substring(i, j) + "\"+");
            //    i += 30;
            //}

            text_End.Text =temp;
        }
    }
}
